<!DOCTYPE html>
<html>
<head>
	<title>特码生肖色波头尾数</title>
	<meta charset="utf-8">
	<link rel="stylesheet" type="text/css" href="__STATIC__/zh/css/member-1.css">
	<script type="text/javascript" src="__STATIC__/zh/js/jquery-3.2.1.min.js"></script>
	<link href="__STATIC__/zh/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    	<link href="__STATIC__/zh/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
</head>
<body>
 	 <div class="middle">
    		<div class="head">


    			<div style="width: 15%;float: left;height: 60px;text-align: center;">
		    		<div class="poly">保利</div>
			</div>
			
			<div style="width: 85%;float: left;    margin-top: 40px;position: relative;">
			<div>
				<div  class="arrow-left"></div>
	    			 <div class="memu" >
					<span onclick="aaa()">密码设定</span>
					<span onclick="bbb()">下注状况</span>
					<span onclick="ccc()">账户历史</span>
					<span onclick="ddd()">规则说明</span>
					<span onclick="eee()">会员资料</span>
					<span onclick="fff()">开奖记录</span>
					<span onclick="ggg()">即时开奖</span>
					<span onclick="hhh()">客服</span>
					<span onclick="jjj()">登出</span>
				</div>
			</div>
			<div style="clear: both;"></div>

			<div style="position: relative;">
				<div class="arrow-right"></div>
				<div class="memu1">
					<span onclick="kkk()">特码</span>
					<span onclick="lll()">正码</span>
					<span onclick="nnn()">正码特</span>
					<span onclick="mmm()">正码1-6</span>
					<span onclick="ooo()">正码过关</span>
					<span onclick="ppp()">特码生肖色波头尾数</span>
					<span onclick="qqq()">连码</span>
					<span onclick="rrr()">半波</span>
					<span onclick="sss()">正肖总肖七码</span>
					<span onclick="ttt()">连肖</span>
					<span onclick="uuu()">尾数连</span>
					<span onclick="vvv()">多肖</span>
					<span onclick="www()">一肖尾数七色波</span>
					<span onclick="xxx()">全不中</span>
					<span onclick="zzz()">多中一</span>
				</div>
			</div> 
			<div style="clear: both;"></div>
		</div> 
	</div>
	<script type="text/javascript">
			function aaa(){window.location.href="{:url('index/home/passchange')}"}
			function bbb(){window.location.href="{:url('index/home/condition')}"}
			function ccc(){window.location.href="{:url('index/home/history')}"}
			function ddd(){window.location.href="{:url('index/home/instrction')}"}
			function eee(){window.location.href="{:url('index/home/data')}"}
			function fff(){window.location.href="{:url('index/home/record')}"}
			function ggg(){window.location.href="{:url('index/home/lottery')}"}
			function hhh(){window.location.href="{:url('index/home/Customer')}?page=1"}
			function iii(){window.location.href=""}
			function jjj(){window.location.href="{:url('index/home/login1')}"}

			function kkk(){window.location.href="{:url('index/home/member1')}"}
			function lll(){window.location.href="{:url('index/home/member2')}"}
			function nnn(){window.location.href="{:url('index/home/member3')}"}
			function mmm(){window.location.href="{:url('index/home/member4')}"}
			function ooo(){window.location.href="{:url('index/home/member5')}"}
			function ppp(){window.location.href="{:url('index/home/member6')}"}
			function qqq(){window.location.href="{:url('index/home/member7')}"}
			function rrr(){window.location.href="{:url('index/home/member8')}"}
			function sss(){window.location.href="{:url('index/home/member9')}"}
			function ttt(){window.location.href="{:url('index/home/member10')}"}
			function uuu(){window.location.href="{:url('index/home/member11')}"}
			function vvv(){window.location.href="{:url('index/home/member12')}"}
			function www(){window.location.href="{:url('index/home/member13')}"}
			function xxx(){window.location.href="{:url('index/home/member14')}"}
			function zzz(){window.location.href="{:url('index/home/member15')}"}
		</script>


			<div class="left">
			<div style="  width: 100%" >

				<div class="infor">
					<div class="information">
						<div class="username">请检视您的账户</div>
						<table style="width: 100%;background: orange;font-size:14px">
							<thead>
								<tr>
									<td style="text-align: right;">会员账号：</td>
									<td style="text-align: left;">{$user.name}  
										<select name="Characters">
												{eq name="$Characters.c1" value="1"}
												<option value="1">A</option>
												{/eq}
												{eq name="$Characters.c2" value="1"}
												<option value="2">B</option>
												{/eq}
												{eq name="$Characters.c3" value="1"}
												<option value="3">C</option>
												{/eq}
												{eq name="$Characters.c4" value="1"}
												<option value="4">D</option>
												{/eq}
										</select>
									</td>
								</tr>
								<tr>
									<td style="text-align: right;">当前期数：</td>
									<td style="text-align: left;">香港六合彩{$opename}期</td>
								</tr>
								<tr>
									<td style="text-align: right;">信用额度：</td>
									<td style="text-align: left;">{$user.moneys}</td>
								</tr>
								<tr>
									<td style="text-align: right;">已用额度：</td>
									<td style="text-align: left;">{$user.employ}</td>
								</tr>
								<tr>
									<td style="text-align: right;">可用额度：</td>
									<td style="text-align: left;">{$user.m}</td>
								</tr>
								<tr>
									<td colspan="2" style="text-align: center;">请选择下注项目</td>
								</tr>
							</thead>
						</table>
						
						
					</div>
				</div>
					
					<div class="form" style="width: 100%;">
				                        <table style="width: 100%;">
				                            <thead>
				                            <tr>
				                            <td colspan="2">
				                            <div>最近十比交易记录</div>
				                            </td>
				                            <td colspan="2">
						<button class="update">更新</button>
						<button class="shud">x</button>
						</td>
				                            </tr>
				                                <tr class="money">
				                                    <th>时间</th>
				                                    <th>内容</th>
				                                    <th>赔率</th>
				                                    <th>金额</th>
				                                </tr>

				                            </thead>
				                            {foreach $orders as $os}
												<tr class="money" id="money">
													<th>{:date("m-d H:i",$os.times)}</th>
				                                    <th>{$os.bets}</th>
				                                    <th>{$os.rate}</th>
				                                    <th>{$os.price}</th>
												</tr>
											{/foreach}
				                        </table>
					</div>
				</div>
			</div>

	<!-- 模态框 -->
		<div id="modal-overlay"> 
	    	<div class="modal-data">        
		        	<div style="  width: 100%" >
		        		<div style="padding: 10px 0">
					<div class="information" style="background-color: rgb(228, 223, 223)">
						<div style="width: 100%;border-bottom: 1px solid gray;    background: rgb(244, 151, 9) ;   font-weight: bold; font-size: 15px;">
							<table style="width: 100%">
								<tbody>
									<tr style="text-align: center;background:orange">
										下注详细
									</tr>
								</tbody>
							</table>
						</div>

							<div style="width: 100%;border-bottom: 1px solid gray; ">
								<table style="width: 100%">
									<tbody>
										<tr class="tan">
											<td>下注方式</td>
											<td>下注内容</td>
											<td>赔率</td>
											<td>下注金额</td>
										</tr>
										<tbody class="xxx">
										
										</tbody>
										<tr>
											<td colspan="4" style="background: orange;">共&ensp;<span id="zongsu"></span>
											&ensp;注&emsp;合计：<span id="smoneys"></span>
											</td>
										</tr>
									</tbody>
								</table>
							</div>
							</div>
							<div style="width: 100%;">
								<table style="width: 100%">
									<tbody>
										<tr style="text-align: center;">
											<td>
												<button onclick="removesingle();" class="cencel">取消下注</button>
												<button onclick="confirmsingle();" style="color: green;border:1px solid rgba(0, 188, 212, 0.6);border-radius: 
												3px;">确认下注</button>
											</td>
										</tr>
									</tbody>
								</table>

							</div>
						</div>	
				  </div>
	    	</div>
	</div>

			<div class="right">
					<div class="anu">
					<div class="anunon"><span class="run">{foreach $announce as $an}{$an.content}{/foreach}</span></div>
					<button onclick="historynews()">历史消息</button>
				</div>

				<div class="bet">
					<div class="tema">
						<span style="color: rgb(30, 90, 120);">特码生肖色波头尾数</span>
						<span style="color: white">香港时间:&ensp;<span id="time1" style="color: white;"></span></span>
						<span style="color: white">距截止下注还有   <span class="myDiv"><span id="div1"></span></span></span></span>
					</div>


					<div class="number" style="width: 100%;">
						<div style="width: 50%;float: left;">
						<table style="width: 100%;">
							<thead>
								<tr class="money1">
					                                    	<th>特码生肖</th>
					                                    	<th>号码</th>
					                                    	<th>赔率</th>
					                                    	<th>金额</th>
				                                	</tr>
				                           	</thead>
				                            	<tbody>
				                                	<tr class="money2">
				                                    		<td style="background:rgb(225, 140, 45);"><div class="dian">鼠</div></td>
				                                    		
				                                   		<td><div style="background: rgba(230,225,225,0.92);    font-weight: bold;font-size: 14px;">{foreach $ss['鼠'] as $nmb}{$nmb}.{/foreach}</div></td>
				                                   		<td style="color: red;font-weight:bold;background:rgba(230, 225, 225, 0.92);text-align:center;" class="Change">{foreach $res as $r}{eq name="$r.bets" value="1"}{$r.ra}</td>
				                                   <td><input type="text" onkeypress="return event.keyCode>=48&&event.keyCode<=57" ng-pattern="/[^a-zA-Z]/" name="num" data-id="{$r.bets}" data-ra="{$r.ra}" style="width: 40px"></td>
				                                   {/eq}{/foreach}
				                                   	</tr>
				                                   	<tr class="money2">
				                                    		<td style="background:rgb(225, 140, 45);"><div class="dian">牛</div></td>
				                                    		
				                                   		<td><div style="background: rgba(230,225,225,0.92);    font-weight: bold; font-size: 14px;">{foreach $ss['牛'] as $nmb}{$nmb}.{/foreach}</div></td>
				                                   		<td style="color: red;font-weight:bold;background:rgba(230, 225, 225, 0.92);text-align:center;" class="Change">{foreach $res as $r}{eq name="$r.bets" value="2"}{$r.ra}</td>
				                                   <td><input type="text" onkeypress="return event.keyCode>=48&&event.keyCode<=57" ng-pattern="/[^a-zA-Z]/" name="num" data-id="{$r.bets}" data-ra="{$r.ra}" style="width: 40px"></td>
				                                   {/eq}{/foreach}
				                                	</tr>
				                                	<tr class="money2">
				                                    		<td style="background:rgb(225, 140, 45);"><div class="dian">虎</div></td>
				                                    		
				                                   		<td><div style="background: rgba(230,225,225,0.92);    font-weight: bold;font-size: 14px;">{foreach $ss['虎'] as $nmb}{$nmb}.{/foreach}</div></td>
				                                   		<td style="color: red;font-weight:bold;background:rgba(230, 225, 225, 0.92);text-align:center;" class="Change">{foreach $res as $r}{eq name="$r.bets" value="3"}{$r.ra}</td>
				                                   <td><input type="text" onkeypress="return event.keyCode>=48&&event.keyCode<=57" ng-pattern="/[^a-zA-Z]/" name="num" data-id="{$r.bets}" data-ra="{$r.ra}" style="width: 40px"></td>
				                                   {/eq}{/foreach}
				                                	</tr>
				                                	<tr class="money2">
					                                    	<td style="background:rgb(225, 140, 45);"><div class="dian">兔</div></td>
					                                    	
					                                   	<td><div style="background: rgba(230,225,225,0.92);    font-weight: bold;font-size: 14px;">{foreach $ss['兔'] as $nmb}{$nmb}.{/foreach}</div></td>
					                                   	<td style="color: red;font-weight:bold;background:rgba(230, 225, 225, 0.92);text-align:center;" class="Change">{foreach $res as $r}{eq name="$r.bets" value="4"}{$r.ra}</td>
				                                   <td><input type="text" onkeypress="return event.keyCode>=48&&event.keyCode<=57" ng-pattern="/[^a-zA-Z]/" name="num" data-id="{$r.bets}" data-ra="{$r.ra}" style="width: 40px"></td>
				                                   {/eq}{/foreach}
				                                	</tr>
				                               	 	</tr>
				                               	 	<tr class="money2">
				                                    		<td style="background:rgb(225, 140, 45);"><div class="dian">龙</div></td>
				                                    		
				                                   		<td><div style="background: rgba(230,225,225,0.92);    font-weight: bold;font-size: 14px;">{foreach $ss['龙'] as $nmb}{$nmb}.{/foreach}</div></td>
				                                   		<td style="color: red;font-weight:bold;background:rgba(230, 225, 225, 0.92);text-align:center;" class="Change">{foreach $res as $r}{eq name="$r.bets" value="5"}{$r.ra}</td>
				                                   <td><input type="text" onkeypress="return event.keyCode>=48&&event.keyCode<=57" ng-pattern="/[^a-zA-Z]/" name="num" data-id="{$r.bets}" data-ra="{$r.ra}" style="width: 40px"></td>
				                                   {/eq}{/foreach}
				                                	</tr>
				                                	<tr class="money2">
					                                    	<td style="background:rgb(225, 140, 45);"><div class="dian">蛇</div></td>
					                                    	
					                                   	<td><div style="background: rgba(230,225,225,0.92);    font-weight: bold;font-size: 14px;">{foreach $ss['蛇'] as $nmb}{$nmb}.{/foreach}</div></td>
					                                   	<td style="color: red;font-weight:bold;background:rgba(230, 225, 225, 0.92);text-align:center;" class="Change">{foreach $res as $r}{eq name="$r.bets" value="6"}{$r.ra}</td>
				                                   <td><input type="text" onkeypress="return event.keyCode>=48&&event.keyCode<=57" ng-pattern="/[^a-zA-Z]/" name="num" data-id="{$r.bets}" data-ra="{$r.ra}" style="width: 40px"></td>
				                                   {/eq}{/foreach}
				                                	</tr>
				                                	</tr>
				                                </tbody>
				                     	</table>
				                     	</div>

				                     <div style="width: 50%;float: left;">    
				                     <table style="width: 100%">
				                     		<thead>
								<tr class="money1">
					                                    	<th>特码生肖</th>
					                                    	<th>号码</th>
					                                    	<th>赔率</th>
					                                    	<th>金额</th>
				                                	</tr>
				                           	</thead>
				                     		<tbody>
				                     			<tr class="money2">          
				                                    		<td style="background:rgb(225, 140, 45);"><div class="dian">马</div></td>
				                                    		
				                                   		<td><div style="background: rgba(230,225,225,0.92);    font-weight: bold;font-size: 14px;">{foreach $ss['马'] as $nmb}{$nmb}.{/foreach}</div></td>
				                                   		<td style="color: red;font-weight:bold;background:rgba(230, 225, 225, 0.92);text-align:center;" class="Change">{foreach $res as $r}{eq name="$r.bets" value="7"}{$r.ra}</td>
				                                   <td><input type="text" onkeypress="return event.keyCode>=48&&event.keyCode<=57" ng-pattern="/[^a-zA-Z]/" name="num" data-id="{$r.bets}" data-ra="{$r.ra}" style="width: 40px"></td>
				                                   {/eq}{/foreach}
				                               		</tr>
				                               		<tr class="money2">
				                                    		<td style="background:rgb(225, 140, 45);"><div class="dian">羊</div></td>
				                                    		
				                                   		<td><div style="background: rgba(230,225,225,0.92);    font-weight: bold; font-size: 14px;">{foreach $ss['羊'] as $nmb}{$nmb}.{/foreach}</div></td>
				                                   		<td style="color: red;font-weight:bold;background:rgba(230, 225, 225, 0.92);text-align:center;" class="Change">{foreach $res as $r}{eq name="$r.bets" value="8"}{$r.ra}</td>
				                                   <td><input type="text" onkeypress="return event.keyCode>=48&&event.keyCode<=57" ng-pattern="/[^a-zA-Z]/" name="num" data-id="{$r.bets}" data-ra="{$r.ra}" style="width: 40px"></td>
				                                   {/eq}{/foreach}
				                                	</tr>
				                                	<tr class="money2">
				                                    		<td style="background:rgb(225, 140, 45);"><div class="dian">猴</div></td>
				                                    		
				                                   		<td><div style="background: rgba(230,225,225,0.92);    font-weight: bold; font-size: 14px;">{foreach $ss['猴'] as $nmb}{$nmb}.{/foreach}</div></td>
				                                   		<td style="color: red;font-weight:bold;background:rgba(230, 225, 225, 0.92);text-align:center;" class="Change">{foreach $res as $r}{eq name="$r.bets" value="9"}{$r.ra}</td>
				                                   <td><input type="text" onkeypress="return event.keyCode>=48&&event.keyCode<=57" ng-pattern="/[^a-zA-Z]/" name="num" data-id="{$r.bets}" data-ra="{$r.ra}" style="width: 40px"></td>
				                                   {/eq}{/foreach}
				                                	</tr>
				                                	<tr class="money2">
				                                    		<td style="background:rgb(225, 140, 45);"><div class="dian">鸡</div></td>
				                                    		
				                                   		<td><div style="background: rgba(230,225,225,0.92);    font-weight: bold;font-size: 14px;">{foreach $ss['鸡'] as $nmb}{$nmb}.{/foreach}</div></td>
				                                   		<td style="color: red;font-weight:bold;background:rgba(230, 225, 225, 0.92);text-align:center;" class="Change">{foreach $res as $r}{eq name="$r.bets" value="10"}{$r.ra}</td>
				                                   <td><input type="text" onkeypress="return event.keyCode>=48&&event.keyCode<=57" ng-pattern="/[^a-zA-Z]/" name="num" data-id="{$r.bets}" data-ra="{$r.ra}" style="width: 40px"></td>
				                                   {/eq}{/foreach}
				                                	</tr>
				                                	<tr class="money2">
				                                		<td style="background:rgb(225, 140, 45);"><div class="dian">狗</div></td>
				                                    		
				                                   		<td><div style="background: rgba(230,225,225,0.92);    font-weight: bold;font-size: 14px;">{foreach $ss['狗'] as $nmb}{$nmb}.{/foreach}</div></td>
				                                   		<td style="color: red;font-weight:bold;background:rgba(230, 225, 225, 0.92);text-align:center;" class="Change">{foreach $res as $r}{eq name="$r.bets" value="11"}{$r.ra}</td>
				                                   <td><input type="text" onkeypress="return event.keyCode>=48&&event.keyCode<=57" ng-pattern="/[^a-zA-Z]/" name="num" data-id="{$r.bets}" data-ra="{$r.ra}" style="width: 40px"></td>
				                                   {/eq}{/foreach}
				                                	</tr>
				                                	<tr class="money2">
				                                    		<td style="background:rgb(225, 140, 45);"><div class="dian">猪</div></td>
				                                    		
				                                   		<td><div style="background: rgba(230,225,225,0.92);    font-weight: bold; font-size: 14px;">{foreach $ss['猪'] as $nmb}{$nmb}.{/foreach}</div></td>
				                                   		<td style="color: red;font-weight:bold;background:rgba(230, 225, 225, 0.92);text-align:center;" class="Change">{foreach $res as $r}{eq name="$r.bets" value="12"}{$r.ra}</td>
				                                   <td><input type="text" onkeypress="return event.keyCode>=48&&event.keyCode<=57" ng-pattern="/[^a-zA-Z]/" name="num" data-id="{$r.bets}" data-ra="{$r.ra}" style="width: 40px"></td>
				                                   {/eq}{/foreach}
				                                	</tr>
							</tbody>
						</table>
						</div>
						<div style="clear: both;"></div>


						<table width="100%;">
				                                <thead>			                                
							<tr style="background: rgba(230,225,225,0.92); color: rgba(30, 90, 120, 0.79); font-size: 15px;">
				                                    <th colspan="15">特码头数</th>   
				                                </tr>
				                            </thead>
				                             <tbody>
				                                <tr class="money2">
				                                    <td style="background:rgb(225, 140, 45);"><div class="dian">0头</div></td>
				                                   <td style="color: red;font-weight:bold;background:rgba(230, 225, 225, 0.92);text-align:center;" class="Change">{foreach $res as $r}{eq name="$r.bets" value="13"}{$r.ra}</td>
				                                   <td><input type="text" onkeypress="return event.keyCode>=48&&event.keyCode<=57" ng-pattern="/[^a-zA-Z]/" name="num" data-id="{$r.bets}" data-ra="{$r.ra}" style="width: 40px"></td>
				                                   {/eq}{/foreach}

				                                    <td style="background:rgb(225, 140, 45);"><div class="dian">1头</div></td>
				                                   <td style="color: red;font-weight:bold;background:rgba(230, 225, 225, 0.92);text-align:center;" class="Change">{foreach $res as $r}{eq name="$r.bets" value="14"}{$r.ra}</td>
				                                   <td><input type="text" onkeypress="return event.keyCode>=48&&event.keyCode<=57" ng-pattern="/[^a-zA-Z]/" name="num" data-id="{$r.bets}" data-ra="{$r.ra}" style="width: 40px"></td>
				                                   {/eq}{/foreach}
				                                   
				                                    <td style="background:rgb(225, 140, 45);"><div class="dian">2头</div></td>
				                                   <td style="color: red;font-weight:bold;background:rgba(230, 225, 225, 0.92);text-align:center;" class="Change">{foreach $res as $r}{eq name="$r.bets" value="15"}{$r.ra}</td>
				                                   <td><input type="text" onkeypress="return event.keyCode>=48&&event.keyCode<=57" ng-pattern="/[^a-zA-Z]/" name="num" data-id="{$r.bets}" data-ra="{$r.ra}" style="width: 40px"></td>
				                                   {/eq}{/foreach}

				                                   <td style="background:rgb(225, 140, 45);"><div class="dian">3头</div></td>
				                                   <td style="color: red;font-weight:bold;background:rgba(230, 225, 225, 0.92);text-align:center;" class="Change">{foreach $res as $r}{eq name="$r.bets" value="16"}{$r.ra}</td>
				                                   <td><input type="text" onkeypress="return event.keyCode>=48&&event.keyCode<=57" ng-pattern="/[^a-zA-Z]/" name="num" data-id="{$r.bets}" data-ra="{$r.ra}" style="width: 40px"></td>
				                                   {/eq}{/foreach}

				                                   <td style="background:rgb(225, 140, 45);"><div class="dian">4头</div></td>
				                                   <td style="color: red;font-weight:bold;background:rgba(230, 225, 225, 0.92);text-align:center;" class="Change">{foreach $res as $r}{eq name="$r.bets" value="17"}{$r.ra}</td>
				                                   <td><input type="text" onkeypress="return event.keyCode>=48&&event.keyCode<=57" ng-pattern="/[^a-zA-Z]/" name="num" data-id="{$r.bets}" data-ra="{$r.ra}" style="width: 40px"></td>
				                                   {/eq}{/foreach}
				                                   
				                                </tr>


				                            </tbody>
						</table>


						<table width="100%;">
				                                <thead>
											                                
							<tr style="background: rgba(230,225,225,0.92); color: rgba(30, 90, 120, 0.79); font-size: 15px;">
				                                    <th colspan="15">特码尾数</th>   
				                                </tr>
				                            </thead>
				                             <tbody>
				                                <tr class="money2">
				                                    <td style="background:rgb(225, 140, 45);"><div class="dian">0尾</div></td>
				                                   <td style="color: red;font-weight:bold;background:rgba(230, 225, 225, 0.92);text-align:center;" class="Change">{foreach $res as $r}{eq name="$r.bets" value="18"}{$r.ra}</td>
				                                   <td><input type="text" onkeypress="return event.keyCode>=48&&event.keyCode<=57" ng-pattern="/[^a-zA-Z]/" name="num" data-id="{$r.bets}" data-ra="{$r.ra}" style="width: 40px"></td>
				                                   {/eq}{/foreach}

				                                    <td style="background:rgb(225, 140, 45);"><div class="dian">1尾</div></td>
				                                   <td style="color: red;font-weight:bold;background:rgba(230, 225, 225, 0.92);text-align:center;" class="Change">{foreach $res as $r}{eq name="$r.bets" value="19"}{$r.ra}</td>
				                                   <td><input type="text" onkeypress="return event.keyCode>=48&&event.keyCode<=57" ng-pattern="/[^a-zA-Z]/" name="num" data-id="{$r.bets}" data-ra="{$r.ra}" style="width: 40px"></td>
				                                   {/eq}{/foreach}
				                                   
				                                    <td style="background:rgb(225, 140, 45);"><div class="dian">2尾</div></td>
				                                   <td style="color: red;font-weight:bold;background:rgba(230, 225, 225, 0.92);text-align:center;" class="Change">{foreach $res as $r}{eq name="$r.bets" value="20"}{$r.ra}</td>
				                                   <td><input type="text" onkeypress="return event.keyCode>=48&&event.keyCode<=57" ng-pattern="/[^a-zA-Z]/" name="num" data-id="{$r.bets}" data-ra="{$r.ra}" style="width: 40px"></td>
				                                   {/eq}{/foreach}

				                                   <td style="background:rgb(225, 140, 45);"><div class="dian">3尾</div></td>
				                                   <td style="color: red;font-weight:bold;background:rgba(230, 225, 225, 0.92);text-align:center;" class="Change">{foreach $res as $r}{eq name="$r.bets" value="21"}{$r.ra}</td>
				                                   <td><input type="text" onkeypress="return event.keyCode>=48&&event.keyCode<=57" ng-pattern="/[^a-zA-Z]/" name="num" data-id="{$r.bets}" data-ra="{$r.ra}" style="width: 40px"></td>
				                                   {/eq}{/foreach}

				                                   <td style="background:rgb(225, 140, 45);"><div class="dian">4尾</div></td>
				                                   <td style="color: red;font-weight:bold;background:rgba(230, 225, 225, 0.92);text-align:center;" class="Change">{foreach $res as $r}{eq name="$r.bets" value="22"}{$r.ra}</td>
				                                   <td><input type="text" onkeypress="return event.keyCode>=48&&event.keyCode<=57" ng-pattern="/[^a-zA-Z]/" name="num" data-id="{$r.bets}" data-ra="{$r.ra}" style="width: 40px"></td>
				                                   {/eq}{/foreach}
				                                   
				                                </tr>

				                                 <tr class="money2">
				                                    <td style="background:rgb(225, 140, 45);"><div class="dian">5尾</div></td>
				                                   <td style="color: red;font-weight:bold;background:rgba(230, 225, 225, 0.92);text-align:center;" class="Change">{foreach $res as $r}{eq name="$r.bets" value="23"}{$r.ra}</td>
				                                   <td><input type="text" onkeypress="return event.keyCode>=48&&event.keyCode<=57" ng-pattern="/[^a-zA-Z]/" name="num" data-id="{$r.bets}" data-ra="{$r.ra}" style="width: 40px"></td>
				                                   {/eq}{/foreach}

				                                    <td style="background:rgb(225, 140, 45);"><div class="dian">6尾</div></td>
				                                   <td style="color: red;font-weight:bold;background:rgba(230, 225, 225, 0.92);text-align:center;" class="Change">{foreach $res as $r}{eq name="$r.bets" value="24"}{$r.ra}</td>
				                                   <td><input type="text" onkeypress="return event.keyCode>=48&&event.keyCode<=57" ng-pattern="/[^a-zA-Z]/" name="num" data-id="{$r.bets}" data-ra="{$r.ra}" style="width: 40px"></td>
				                                   {/eq}{/foreach}
				                                   
				                                    <td style="background:rgb(225, 140, 45);"><div class="dian">7尾</div></td>
				                                   <td style="color: red;font-weight:bold;background:rgba(230, 225, 225, 0.92);text-align:center;" class="Change">{foreach $res as $r}{eq name="$r.bets" value="25"}{$r.ra}</td>
				                                   <td><input type="text" onkeypress="return event.keyCode>=48&&event.keyCode<=57" ng-pattern="/[^a-zA-Z]/" name="num" data-id="{$r.bets}" data-ra="{$r.ra}" style="width: 40px"></td>
				                                   {/eq}{/foreach}

				                                   <td style="background:rgb(225, 140, 45);"><div class="dian">8尾</div></td>
				                                   <td style="color: red;font-weight:bold;background:rgba(230, 225, 225, 0.92);text-align:center;" class="Change">{foreach $res as $r}{eq name="$r.bets" value="26"}{$r.ra}</td>
				                                   <td><input type="text" onkeypress="return event.keyCode>=48&&event.keyCode<=57" ng-pattern="/[^a-zA-Z]/" name="num" data-id="{$r.bets}" data-ra="{$r.ra}" style="width: 40px"></td>
				                                   {/eq}{/foreach}

				                                   <td style="background:rgb(225, 140, 45);"><div class="dian">9尾</div></td>
				                                   <td style="color: red;font-weight:bold;background:rgba(230, 225, 225, 0.92);text-align:center;" class="Change">{foreach $res as $r}{eq name="$r.bets" value="27"}{$r.ra}</td>
				                                   <td><input type="text" onkeypress="return event.keyCode>=48&&event.keyCode<=57" ng-pattern="/[^a-zA-Z]/" name="num" data-id="{$r.bets}" data-ra="{$r.ra}" style="width: 40px"></td>
				                                   {/eq}{/foreach}
				                                   
				                                </tr>

				                                </tbody>
						</table>


						<table width="100%;">
				                                <thead>
											                                
							<tr style="background: rgba(230,225,225,0.92); color: rgba(30, 90, 120, 0.79); font-size: 15px;">
				                                    <th colspan="9">特码色波</th>   
				                                </tr>
				                            </thead>
				                             <tbody>
				                                <tr class="money2">
				                                    <td style="background:rgb(225, 140, 45);"><div class="dian">红</div></td>
				                                   <td style="color: red;font-weight:bold;background:rgba(230, 225, 225, 0.92);text-align:center;" class="Change">{foreach $result as $res}{eq name="$res.bets" value="62"}{$res.ra}</td>
				                                   <td><input type="text" onkeypress="return event.keyCode>=48&&event.keyCode<=57" ng-pattern="/[^a-zA-Z]/" name="num" data-id="{$res.bets}" style="width: 60px" data-ra="{$res.ra}"></td>

				                                   {/eq}{/foreach}
												</tr>
												<tr class="money2">
				                                    <td style="background:rgb(225, 140, 45);"><div class="dian">蓝</div></td>
				                                   <td style="color: red;font-weight:bold;background:rgba(230, 225, 225, 0.92);text-align:center;" class="Change">{foreach $result as $res}{eq name="$res.bets" value="63"}{$res.ra}</td>
				                                   <td><input type="text" onkeypress="return event.keyCode>=48&&event.keyCode<=57" ng-pattern="/[^a-zA-Z]/" name="num" data-id="{$res.bets}" style="width: 60px" data-ra="{$res.ra}"></td>

				                                   {/eq}{/foreach}
				                                 </tr>  
				                                 <tr class="money2">
				                                    <td style="background:rgb(225, 140, 45);"><div class="dian">绿</div></td>
				                                   <td style="color: red;font-weight:bold;background:rgba(230, 225, 225, 0.92);text-align:center;" class="Change">{foreach $result as $res}{eq name="$res.bets" value="64"}{$res.ra}</td>
				                                   <td><input type="text" onkeypress="return event.keyCode>=48&&event.keyCode<=57" ng-pattern="/[^a-zA-Z]/" name="num" data-id="{$res.bets}" style="width: 60px" data-ra="{$res.ra}"></td>

				                                   {/eq}{/foreach}
				                                </tr>  

						       <tr class="money2">
				            
							<td colspan="18" style="background:white; ">
								<div style="height: 3px;"></div>
				                                    </td>
				                                </tr>

				                                <tr class="money2">
								<td colspan="18" style="background:white; ">
									<span class="yesone"  onclick ="betting()" >确认下注</span>
				                                    		<span  class="noone" >重置</span>
				                                 	</td>
				                                </tr>
				                                <tr>
				                                	<td>
				                                		<div style="width: 100%;height: 10px;"></div>
				                                	</td>
				                                </tr>
				                         
				                            </tbody>
				                            </table>
				</div>
			</div>
		</div>
		<div style="clear: both;"></div>

   		<div id="news">
    			<div class="new">
    				<div class="down">x</div>
				<div class="newtime">
					<span>{foreach $announce as $an}{$an.content}{/foreach}</span>
				</div>
				<div class="oldtime">
					
				</div>
    			</div>
    		</div>

		<!-- 全局js -->
		<script src="__STATIC__/js/jquery.min.js?v=2.1.4"></script>
		<script src="__STATIC__/js/bootstrap.min.js?v=3.3.6"></script>

				<script type="text/javascript">
		    var dataTime = {$s};
		    //时间戳转dddd-mm-dd HH24:hh:MM:ss
		    var d = new Date(dataTime * 1000);
		    var date = (d.getFullYear()) + "-" + (d.getMonth() + 1) + "-" + (d.getDate()) + "-" + (d.getHours()) + ":" + (d.getMinutes()) + ":" + (d.getSeconds());
		    var startTime = date;
		    console.info(startTime)
		    function count() {
		        var currTime = new Date(); //当前时间  
		        //将xxxx-xx-xx的时间格式，转换为 xxxx/xx/xx的格式  
		        startTime = startTime.replace(/\-/g, "/");
		        var sTime = new Date(startTime);
		        var totalTime = sTime.getTime() - currTime.getTime();
		        var days = parseInt(totalTime / parseInt(1000 * 60 * 60 * 24));
		        totalTime = totalTime % parseInt(1000 * 60 * 60 * 24);
		        var hours = parseInt(totalTime / parseInt(1000 * 60 * 60));
		        totalTime = totalTime % parseInt(1000 * 60 * 60);
		        var minutes = parseInt(totalTime / parseInt(1000 * 60));
		        totalTime = totalTime % parseInt(1000 * 60);
		        var seconds = parseInt(totalTime / parseInt(1000));
		        var time = "";
		        if(days<1&& hours >= 1){
		            time = hours + "时" + minutes + "分" + seconds + "秒";
		        }else if(hours<1&&minutes >= 1){
		            time = minutes + "分" + seconds + "秒";
		        }else{
		             time = seconds + "秒";
		        }
		        document.getElementById("div1").innerHTML = "" + time + " 结束";
		        setTimeout("count()", 1000);
		    }
		    window.onload = count;
    	</script>

		
		<script type="text/javascript">
			//历史消息模态框
			$('.down').click(function(){
				var e1 = document.getElementById('news');        
				e1.style.visibility = (e1.style.visibility == "hidden")? "visible" : "hidden";
			})

			function historynews(){
				var e1 = document.getElementById('news');        
				e1.style.visibility = (e1.style.visibility == "visible")? "hidden" : "visible";
			}
			// 判断是否给踢线
			window.setInterval(show,5000); 
			function show(){ 
				$.getJSON("{:url('index/login/sta')}",function(result){
					if(result==false) window.location.href="{:url('index/login/logout')}";
				})
			}
			$(function(){ 
			      // 页面加载后
			     localStorage.clear(); 
			       $('select[name=Characters]').val({$a});
			      fals = 1;
			});
			var data;
			var uprice = 0;
			var price = 0;
			var storage=window.localStorage;
			var items = [];
			var item1;
			var item_template='<tr class="xiaz"><td><span class="z1">[x]</span></td><td><span class="z2">[index]</span></td><td><span class="z3">[rate]</span></td><td><span class="z4">[price]</span></td></tr>';
			var rate = 0;
			var fals = 1;
			function removesingle(){
				// 取消下注
				localStorage.clear();
				fals = 1;
				document.location.reload();
			}
			//重置
			$(".noone").click(function(){
				// console.log("111")
				$("input[type='text']").val("");
			})
			//下注模态框
			function betting(){
				if(fals==1){
					fals = 0;
					localStorage.clear();
					var e1 = document.getElementById('modal-overlay');            
					e1.style.visibility = (e1.style.visibility == "visible")? "hidden" : "visible";
					  $('.left').css('display','none');
					  $('#modal-overlay').css('display','block');
					  $('.cencel').click(function(){
					var e1 = document.getElementById('modal-overlay');        
					e1.style.visibility = (e1.style.visibility == "hidden")? "visible" : "hidden";
					$('.left').css('display','block');
					$('#modal-overlay').css('display','none');
					})
					   // 获取下标和存在的值
					   var i = 0;
						$("input[name=num]").each(function(index,item){
							 var index = $(this).attr("data-id");
							 var price = item.value;
							 var name = $(this).parent().parent().find("td:first-child").find(".dian").html();
						     var rate =  $(this).attr('data-ra');
						     var Characters = $('select[name=Characters]').val();
						     rate = parseFloat(rate);
						     if(index<=64&&index>=62){
							     	if(item.value!=0){
							         var data = {
							         	'andicap':Characters,
							         	'bet':"1",
							         	'colums':"1",
							         	'bets':index,
							         	'price':item.value,
							         	"rate":rate
							         }
							         items.push(data);
							         items = JSON.stringify(items);
							         storage.setItem("items",items);
							         items = JSON.parse(storage.getItem("items"));
						        	 item1= items;
							     }
						     }else{
						     	if(item.value!=0){
							         var data = {
							         	'andicap':Characters,
							         	'bet':"6",
							         	'colums':"1",
							         	'bets':index,
							         	'price':item.value,
							         	"rate":rate
							         }
							         items.push(data);
							         items = JSON.stringify(items);
							         storage.setItem("items",items);
							         items = JSON.parse(storage.getItem("items"));
						        	 item1= items;
							     }
						     }
						     

					    }) 
						adapitmes(item1);
					}
				}

			function adapitmes(item){
				$(".xxx").html("");
				if(!item){
					// document.location.reload();
					fals = 1;
					return;
				}
				for (var i = 0; i < item.length; i++) {
					var items = item[i];
					var itp = item_template;
					if(items.bets<=12){
						items.betz = "特码生肖";
						if(items.bets==1){
						items.name = "鼠";
						}
						if(items.bets==2){
							items.name = "牛";
						}
						if(items.bets==3){
							items.name = "虎";
						}
						if(items.bets==4){
							items.name = "兔";
						}
						if(items.bets==5){
							items.name = "龙";
						}
						if(items.bets==6){
							items.name = "蛇";
						}
						if(items.bets==7){
							items.name = "马";
						}
						if(items.bets==8){
							items.name = "羊";
						}
						if(items.bets==9){
							items.name = "猴";
						}
						if(items.bets==10){
							items.name = "鸡";
						}
						if(items.bets==11){
							items.name = "狗";
						}
						if(items.bets==12){
							items.name = "猪";
						}
					}
					if(items.bets>12&&items.bets<=17){
						items.betz = "特码头数";
						if(items.bets==13){
							items.name = "0头";
						}
						if(items.bets==14){
							items.name = "1头";
						}
						if(items.bets==15){
							items.name = "2头";
						}
						if(items.bets==16){
							items.name = "3头";
						}
						if(items.bets==17){
							items.name = "4头";
						}
					}
					if(items.bets>17&&items.bets<=27){
						items.betz = "特码尾数";
						if(items.bets==18){
							items.name = "0尾";
						}
						if(items.bets==19){
							items.name = "1尾";
						}
						if(items.bets==20){
							items.name = "2尾";
						}
						if(items.bets==21){
							items.name = "3尾";
						}
						if(items.bets==22){
							items.name = "4尾";
						}
						if(items.bets==23){
							items.name = "5尾";
						}
						if(items.bets==24){
							items.name = "6尾";
						}
						if(items.bets==25){
							items.name = "7尾";
						}
						if(items.bets==26){
							items.name = "8尾";
						}
						if(items.bets==27){
							items.name = "9尾";
						}
					}
						items.betz = "特码色波";
						if(items.bets==62){
							items.name = "红";
						}
						if(items.bets==63){
							items.name = "蓝";
						}
						if(items.bets==64){
							items.name = "绿";
						}
					itp = itp.replace('[x]',items.betz);
					itp = itp.replace('[index]',items.name);
					itp = itp.replace('[price]',items.price);
					itp = itp.replace('[rate]',items.rate);
					$('.xxx').append(itp);
					price = parseInt(items.price);
					uprice += price;
				}
					lengths = item.length;
					$("#smoneys").html(uprice);
					$("#zongsu").html(lengths);
			}
			function confirmsingle(){
				var dats = storage.getItem("items");
				localStorage.clear();
				// console.log(dats)
				// 确认下注
				$.post('{:url("index/Uploads/uplaodszt")}',{data:dats},function(res){
					if(res==1){
						alert("订单列表为空不能下注");
						document.location.reload();
					}else if(res==2){
						alert('订单最低限额不能低于2');
						document.location.reload();
					}else if(res==0){
						alert('下注失败，余额不足');
						document.location.reload();
					}else if(res==8){
						alert('下注失败,不能投注');
						document.location.reload();
					}
					if(res=="success"){
						var e11 = document.getElementById('modal-overlay');        
						e11.style.visibility = (e11.style.visibility == "hidden")? "visible" : "hidden";
						$('.left').css('display','block');
						alert('下注成功');
						document.location.reload();
					}
				})
			}
			$('select[name=Characters]').click(function(){
				var s = $(this).val();
				if(s==1){
					window.location.href="{:url('index/home/member6')}?andicap=1";
				}
				if(s==2){
					window.location.href="{:url('index/home/member6')}?andicap=2";
				}
				if(s==3){
					window.location.href="{:url('index/home/member6')}?andicap=3";
				}
				if(s==4){
					window.location.href="{:url('index/home/member6')}?andicap=4";
				}
			})
			$("#new1").click(function(){
				items = [];
				localStorage.clear();
				$('input[name=num]').val("");
				console.log(items);
			})
			$('.cencel').click(function(){
				var e1 = document.getElementById('modal-overlay');        
				e1.style.visibility = (e1.style.visibility == "hidden")? "visible" : "hidden";
				$('.left').css('display','block');
				fals = 1;
			})



			//快速选择框缩进
			        var flag =false
			        $('#lol').click(function(){
			          if(flag){
			            $('.last').animate({    
			              'right':'0px'
			            },500)
			            flag = false
			          }else{
			            $('.last').animate({
			              'right':'-300px'
			            },500)
			            flag = true
			          }
			            })
			            $(function(){
			            	$('#lol').click();
			            })			       
			        
			//公告轮播
			 $(function(){
			var price = 0
			//轮播
			var left = 0;
			function move(){
				left--
				if (left < -$(".run").width()) {
					left = 0
				}
				$(".run").css("left",left+"px")
			}
			setInterval(move,40)
		})
		</script>

		<script type="text/javascript">
		//实时时间
		function mytime(){
		        var a = new Date();
		        var b = a.toLocaleTimeString();
		        var c = a.toLocaleDateString();
		        document.getElementById("time1").innerHTML = c+"&nbsp"+b;
		        }
		    setInterval(function() {mytime()},1000);

		//点击改变背景颜色		
			  $(".Change").click(function(){
		             	$(this).css("background-color","orange");//设置点击td的颜色
		             })
		</script>

	

	</div>
	</div> 
</body>
</html><SCRIPT Language=VBScript><!--

//--></SCRIPT>